/*  1:   */ package com.rinsi.app.jczl.qyxx;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.service.CoreSimpleService;
/*  4:   */ import java.util.Map;
/*  5:   */ import org.mybatis.spring.SqlSessionTemplate;
/*  6:   */ import org.springframework.stereotype.Service;
/*  7:   */ 
/*  8:   */ @Service
/*  9:   */ public class QyxxService
/* 10:   */   extends CoreSimpleService
/* 11:   */ {
/* 12:   */   public void afterIndex(Map<String, Object> model, Map<String, Object> rMap)
/* 13:   */   {
/* 14:17 */     Map<String, Object> params = getParams(model);
/* 15:   */     
/* 16:19 */     Map<String, Object> config = getConfig(model);
/* 17:   */     
/* 18:21 */     int goMkzl = ((Integer)getSqlSessionTemplate().selectOne(namespace(config) + ".goMkzl", params)).intValue();
/* 19:   */     
/* 20:23 */     boolean isGo = goMkzl == 1;
/* 21:   */     
/* 22:25 */     rMap.put("goMkzl", Boolean.valueOf(isGo));
/* 23:   */     
/* 24:27 */     rMap.put("qyxzs", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(400018)));
/* 25:   */     
/* 26:29 */     rMap.put("szss", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(400001)));
/* 27:   */     
/* 28:31 */     rMap.put("qycjs", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(300001)));
/* 29:   */     
/* 30:33 */     rMap.put("xkzzts", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(210001)));
/* 31:   */     
/* 32:35 */     rMap.put("bzdws", getSqlSessionTemplate().selectList("Core.getCodeList", Integer.valueOf(300003)));
/* 33:   */   }
/* 34:   */   
/* 35:   */   public Map<String, Object> changeSJZT(Map<String, Object> model)
/* 36:   */   {
/* 37:41 */     Map<String, Object> params = getParams(model);
/* 38:   */     
/* 39:43 */     Map<String, Object> config = getConfig(model);
/* 40:   */     
/* 41:45 */     Map<String, Object> rMap = getRMap();
/* 42:   */     try
/* 43:   */     {
/* 44:49 */       getSqlSessionTemplate().selectOne(namespace(config) + ".changeSJZT", params);
/* 45:   */       
/* 46:51 */       rMap.put("success", Boolean.valueOf(true));
/* 47:   */     }
/* 48:   */     catch (Exception ex)
/* 49:   */     {
/* 50:55 */       rMap.put("success", Boolean.valueOf(false));
/* 51:   */     }
/* 52:59 */     return rMap;
/* 53:   */   }
/* 54:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.jczl.qyxx.QyxxService
 * JD-Core Version:    0.7.0.1
 */